package com.cxf.cxfknife4j.service;

import com.cxf.cxfknife4j.entity.User;
import org.springframework.stereotype.Service;

/**
 * @description: UserService
 * @date: 2022/3/9 22:07
 * @author: cxf
 * @version: 1.0
 */
@Service
public class UserService {

    public User findUserById(String userId) {
        User user = new User();
        user.setId("123456");
        user.setUsername("admin");
        user.setPassword("admin");
        return user;
    }

    public User findByUsername(User user) {
        user.setId("123456");
        user.setUsername("admin");
        user.setPassword("admin");
        return user;
    }
}
